package com.sport.controller;


import cn.dev33.satoken.annotation.SaCheckPermission;
import cn.dev33.satoken.annotation.SaCheckRole;
import cn.hutool.json.ObjectMapper;
import com.fasterxml.jackson.databind.module.SimpleModule;
import com.sport.model.Result;
import com.sport.utils.StringListDeserializer;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.junit.Test;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Arrays;
import java.util.List;

import static org.junit.Assert.assertEquals;

@RestController
@Tag(name = "测试接口")
@RequestMapping("/test")
public class TestController {
    @GetMapping("/test")
    @SaCheckRole("admin")
    @SaCheckPermission(value = {"system:user:select"}, orRole = {"admin"})
    public Result<String> test() {
        return Result.success("测试成功");
    }


}
